<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2018/6/14
  Time: 16:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<jsp:useBean id="count" class="edu.sctu.demo.CounterBean" scope="application"/>
<h1>该网页当前被浏览 :<jsp:getProperty name="count"  property="count"/>次</h1>

<%
    count.add();
%>

</body>
</html>

//scope=application 对所有起作用 session 对一个起作用
JSP标签
